package com.mc.read.adminapi.controller;

import com.alibaba.fastjson.JSON;
import com.mc.read.dao.mapper.UserinformationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author liuhao
 * @date 2019/7/17 16:26
 */
@Component
public class Test implements ApplicationRunner {
    @Autowired
    UserinformationMapper userinformationMapper;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println(JSON.toJSONString(userinformationMapper.selectByExample(null)));
    }
}
